package com.jz.community.modulemine.packet.bean;

import com.jz.community.basecomm.bean.baseCommInfo.LinksInfo;
import com.jz.community.basecomm.bean.baseCommInfo.PageInfo;

import java.util.List;

public class RedPacketBean {

    /**
     * _embedded : {"redPacketLogs":[{"id":11,"userid":500000,"name":"ddd","type":1,"money":20,"minlimitmoney":0,"limitshopname":null,"limitgoodsnames":null,"startdate":"2018-07-13","enddate":"2018-08-13","redpacket_status":1,"_links":{"self":{"href":"http://api.shoppingyizhan.com/rps/redpacketlog/11"}}},{"id":10,"userid":500000,"name":"ddd","type":1,"money":20,"minlimitmoney":0,"limitshopname":null,"limitgoodsnames":null,"startdate":"2018-07-13","enddate":"2018-08-13","redpacket_status":1,"_links":{"self":{"href":"http://api.shoppingyizhan.com/rps/redpacketlog/10"}}}]}
     * _links : {"self":{"href":"http://api.shoppingyizhan.com/rps/redpacketlog?redpacket_status=1&page=0&size=10&sort=id,desc"}}
     * page : {"size":10,"totalElements":2,"totalPages":1,"number":0}
     */

    private EmbeddedBean _embedded;
    private PageInfo page;

    public EmbeddedBean get_embedded() {
        return _embedded;
    }

    public void set_embedded(EmbeddedBean _embedded) {
        this._embedded = _embedded;
    }

    public PageInfo getPage() {
        return page;
    }

    public void setPage(PageInfo page) {
        this.page = page;
    }

    public static class EmbeddedBean {
        private List<RedPacketLogsBean> redPacketLogs;

        public List<RedPacketLogsBean> getRedPacketLogs() {
            return redPacketLogs;
        }

        public void setRedPacketLogs(List<RedPacketLogsBean> redPacketLogs) {
            this.redPacketLogs = redPacketLogs;
        }

        public static class RedPacketLogsBean extends LinksInfo {
            /**
             * id : 11
             * userid : 500000
             * name : ddd
             * type : 1
             * money : 20
             * minlimitmoney : 0
             * limitshopname : null
             * limitgoodsnames : null
             * startdate : 2018-07-13
             * enddate : 2018-08-13
             * redpacket_status : 1
             * _links : {"self":{"href":"http://api.shoppingyizhan.com/rps/redpacketlog/11"}}
             */

            private String id;
            private String userid;
            private String name;
            private int type;
            private int money;
            private int minlimitmoney;
            private String limitshopname;
            private String limitgoodsnames;
            private String startdate;
            private String enddate;
            private int redpacket_status;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getUserid() {
                return userid;
            }

            public void setUserid(String userid) {
                this.userid = userid;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getMoney() {
                return money;
            }

            public void setMoney(int money) {
                this.money = money;
            }

            public int getMinlimitmoney() {
                return minlimitmoney;
            }

            public void setMinlimitmoney(int minlimitmoney) {
                this.minlimitmoney = minlimitmoney;
            }

            public String getLimitshopname() {
                return limitshopname;
            }

            public void setLimitshopname(String limitshopname) {
                this.limitshopname = limitshopname;
            }

            public String getLimitgoodsnames() {
                return limitgoodsnames;
            }

            public void setLimitgoodsnames(String limitgoodsnames) {
                this.limitgoodsnames = limitgoodsnames;
            }

            public String getStartdate() {
                return startdate;
            }

            public void setStartdate(String startdate) {
                this.startdate = startdate;
            }

            public String getEnddate() {
                return enddate;
            }

            public void setEnddate(String enddate) {
                this.enddate = enddate;
            }

            public int getRedpacket_status() {
                return redpacket_status;
            }

            public void setRedpacket_status(int redpacket_status) {
                this.redpacket_status = redpacket_status;
            }

        }
    }

}
